#include "imgbox.h"
#include <QDebug>
imgbox::imgbox(QWidget * parent,QImage myimg):QWidget(parent)
{

    this->img=myimg;
    this->update();
}
void imgbox::paintEvent( QPaintEvent *event){
    QPainter g(this);
    this->img.scaled(this->size());
    g.drawImage(this->rect(),this->img);
}

